package com.huike.business.mapper;

import java.util.List;

import com.huike.business.domain.TbBusiness;
import com.huike.business.domain.TbBusinessTrackRecord;
import com.huike.common.core.domain.AjaxResult;

/**
 * 商机跟进记录Mapper接口
 * @date 2021-04-28
 */
public interface TbBusinessTrackRecordMapper {

    /**
     * 更新商机中的客户信息
     * @param tbBusiness 商机信息
     * @return Integer
     */
    Integer updateTbBusinessById(TbBusiness tbBusiness);

    /** 新增商机跟进记录
     * @param tbBusinessTrackRecord 商机跟进记录
     * @return Integer
     */
    Integer addTbBusinessTrackRecord(TbBusinessTrackRecord tbBusinessTrackRecord);

    /**
     * 查询商机跟进记录列表
     * @param id 商机ID
     * @return TbBusinessTrackRecord 商机跟进记录列表
     */
    List<TbBusinessTrackRecord> getByBusinessId(Long id);
}